import { createSlice } from "@reduxjs/toolkit";

export const counterSlice = createSlice({
  name: "counter",
  initialState: {
    info: {},
  },
  reducers: {
    upUsername(state, action) {
      state.info = action.payload;
    },
  },
});

export const { upUsername } = counterSlice.actions;

export default counterSlice.reducer;
